package action.credit;

import java.util.List;

import service.credit.CreditApplyEnterpriseAjaxService;
import vo.CreditEnsurePeopleBean;
import vo.CreditHypothecateThingBean;
import vo.CreditPledgeThingBean;

/**
 * 得到个人抵质押信息的ajax
 * @author FOTF
 * */
public class CreditPersonalAjax {
	private String personalId;
	private CreditApplyEnterpriseAjaxService creditApplyEnterpriseAjaxService;
	private List<CreditEnsurePeopleBean> creditEnsurePeopleBeanList;
	private List<CreditHypothecateThingBean> creditHypothecateThingBeanList;
	private List<CreditPledgeThingBean> creditPledgeThingBeanList;
	private String dostate;

	/**
	 * 得到保证人列表信息
	 * */
	public String go_in() {
		if (this.personalId != null) {
			this.creditEnsurePeopleBeanList = this.creditApplyEnterpriseAjaxService
					.getOneEnterpriseList(Integer.parseInt(personalId));
		}
		return "go_in";
	}

	/**
	 * 得到抵押物信息
	 * */
	public String go_in_hypothecate() {
		if (this.personalId != null) {
			this.creditHypothecateThingBeanList = this.creditApplyEnterpriseAjaxService
					.getOneCreditHypothecateThingList(Integer
							.parseInt(personalId));
		}
		return "go_in";
	}

	/**
	 * 得到质押物信息
	 * */
	public String go_in_pledge() {
		if (this.personalId != null) {
			this.creditPledgeThingBeanList = this.creditApplyEnterpriseAjaxService
					.getOneCreditPledgeThingBeanList(Integer
							.parseInt(personalId));
		}
		return "go_in";
	}

	public String getPersonalId() {
		return personalId;
	}

	public void setPersonalId(String personalId) {
		this.personalId = personalId;
	}

	public CreditApplyEnterpriseAjaxService getCreditApplyEnterpriseAjaxService() {
		return creditApplyEnterpriseAjaxService;
	}

	public void setCreditApplyEnterpriseAjaxService(
			CreditApplyEnterpriseAjaxService creditApplyEnterpriseAjaxService) {
		this.creditApplyEnterpriseAjaxService = creditApplyEnterpriseAjaxService;
	}

	public List<CreditEnsurePeopleBean> getCreditEnsurePeopleBeanList() {
		return creditEnsurePeopleBeanList;
	}

	public void setCreditEnsurePeopleBeanList(
			List<CreditEnsurePeopleBean> creditEnsurePeopleBeanList) {
		this.creditEnsurePeopleBeanList = creditEnsurePeopleBeanList;
	}

	public List<CreditHypothecateThingBean> getCreditHypothecateThingBeanList() {
		return creditHypothecateThingBeanList;
	}

	public void setCreditHypothecateThingBeanList(
			List<CreditHypothecateThingBean> creditHypothecateThingBeanList) {
		this.creditHypothecateThingBeanList = creditHypothecateThingBeanList;
	}

	public List<CreditPledgeThingBean> getCreditPledgeThingBeanList() {
		return creditPledgeThingBeanList;
	}

	public void setCreditPledgeThingBeanList(
			List<CreditPledgeThingBean> creditPledgeThingBeanList) {
		this.creditPledgeThingBeanList = creditPledgeThingBeanList;
	}

	public String getDostate() {
		return dostate;
	}

	public void setDostate(String dostate) {
		this.dostate = dostate;
	}
}
